home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Chat & Communication
/
Digsby build 37
/
digsby_setup.exe
/
lib
/
pyxmpp
/
exceptions.pyo
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2008-10-13
|
6KB
|
147 lines
# Source Generated with Decompyle++
# File: in.pyo (Python 2.5)
__revision__ = '$Id: error.py 647 2006-08-26 18:27:39Z jajcus $'
__docformat__ = 'restructuredtext en'
import logging
class Error(StandardError):
pass
class JIDError(Error, ValueError):
pass
class StreamError(Error):
pass
class StreamEncryptionRequired(StreamError):
pass
class HostMismatch(StreamError):
pass
class FatalStreamError(StreamError):
pass
class StreamParseError(FatalStreamError):
pass
class StreamAuthenticationError(FatalStreamError):
pass
class TLSNegotiationFailed(FatalStreamError):
pass
class TLSError(FatalStreamError):
pass
class TLSNegotiatedButNotAvailableError(TLSError):
pass
class SASLNotAvailable(StreamAuthenticationError):
pass
class SASLMechanismNotAvailable(StreamAuthenticationError):
pass
class SASLAuthenticationFailed(StreamAuthenticationError):
pass
class StringprepError(Error):
pass
class ClientError(Error):
pass
class FatalClientError(ClientError):
pass
class ClientStreamError(StreamError):
pass
class FatalClientStreamError(FatalStreamError):
pass
class LegacyAuthenticationError(ClientStreamError):
pass
class RegistrationError(ClientStreamError):
pass
class ComponentStreamError(StreamError):
pass
class FatalComponentStreamError(ComponentStreamError, FatalStreamError):
pass
class ProtocolError(Error):
logger_reported = logging.getLogger('pyxmpp.ProtocolError.reported')
logger_ignored = logging.getLogger('pyxmpp.ProtocolError.ignored')
def __init__(self, xmpp_name, message):
self.args = (xmpp_name, message)
self.xmpp_name = xmpp_name
self.message = unicode(message)
def log_reported(self):
self.logger_reported.debug(u'Protocol error detected: %s', self.message)
def log_ignored(self):
self.logger_ignored.debug(u'Protocol error detected: %s', self.message)
def __str__(self):
return str(self.message)
def __repr__(self):
return '<ProtocolError %r %r>' % (self.xmpp_name, self.message)
class BadRequestProtocolError(ProtocolError):
def __init__(self, message):
ProtocolError.__init__(self, 'bad-request', message)
class JIDMalformedProtocolError(ProtocolError, JIDError):
def __init__(self, message):
ProtocolError.__init__(self, 'jid-malformed', message)
class FeatureNotImplementedProtocolError(ProtocolError):
def __init__(self, message):
ProtocolError.__init__(self, 'feature-not-implemented', message)